/**
 * Bootstraping.java
 * ************************** 
 * @date Apr 26, 2011
 * @author Michele Tamburini
 * 
 * **************************
 */
package gossipServices.bootstraping.theBootstrapingService;

import gossipServices.basic.view.PartialView;
import gossipServices.gossipThread.GossipBasedProtocol;
import gossipServices.network.NetworkServicesAPI;
import gossipServices.pss.PeerSamplingServiceAPI;

/**
 * Description: 
 *
 */
public class Bootstraping extends GossipBasedProtocol {
	
	/**
	 * 
	 * @param cycleLenghtMsec
	 * @param bootstrapingView
	 * @param pss
	 * @param nsa
	 */
	public Bootstraping(long cycleLenghtMsec, PartialView bootstrapingView, 
			PeerSamplingServiceAPI pss, NetworkServicesAPI nsa){
		super(new BootActiveThread("BootActive", cycleLenghtMsec, bootstrapingView, pss, nsa),
				new BootPassiveThread("BootPassive", cycleLenghtMsec, bootstrapingView, pss, nsa));
	}
	
	/*
	 * We need a method to initialize the local variables such as the LeafSet
	 * and the PrefixTable. They have to be initialized once
	 * the node receive a RequestMessage asking for a subcloud, and then
	 * the bootstraping can begin in order to build the overlay. 
	 */

}
